package com.xuecheng.framework.domain.course.validator.coursebase;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.METHOD,ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR,
        ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {IsGradeValidator.class})
public @interface IsGrade {
    String message() default "课程级别不合法";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
